import React from 'react';
import { connect } from 'dva';
import JurisAllotComponent from '../../../components/BasicInfoSetting/JurisdictionAllot/JurisdictionAllot';

function jurisdictionAllot({ dispatch, app, content }) {
  function removePane(changePanes, currentPane) {
    dispatch({ type: 'app/removePane', payload: { changePanes, currentPane } });
  }

  const jurAllotProps = {
    dispatch,
    app,
    content,
    onRemovePane: removePane,
  };

  return (
    <JurisAllotComponent {...jurAllotProps} />
  );
}

export default connect(({ app, content }) =>
  ({ app, content }))(jurisdictionAllot);
